Added basic PCA implementation and unit tests.