Introducing a Unified PCA Algorithm for Model Size Reduction