First part of project 2 for MIT Machine Learning class 6.s064. k-means, PCA, and a couple other goodies.