Solution for K-means Clustering and Principal Component Analysis

Solution for K-means Clustering and Principal Component Analysis
(Programming Exercise #7).