added mnist_train_dictionary to do k-means clustering for a sparse dictionary'