Clustering Algoritm Function

Algorithm is working. Now test will have to be done to determine
accuracy of predictions, and a test set will have to be fed into program
and saved for later use.