Many Changes, Added cosine distance to cluster select func, Much work done on mnist_dictionary_train