Use 520000 and covtype.test as training and testing. Before testing, you must use the training set to decide k. This is done by a five-fold cross validation.