finished programming assignment of K-means and PCA