Exhaustive search KNN to MNIST dataset