K-means Clustering and Principal Component Analysis in 10 Minutes