Functions for Evaluating the performance of unsupervised learning