updated PCA to change data matrix dimensions and made code more efficient.