K-nearest neighbor classifier classifies mnist data sets