add knn algorithm on mnist data set with error rate of 3.1