using k-means for clustering digits in MNIST and images of faces