Use RowMatrix in relavant analyses

- Updated RowMatrix class with new functions and cleaner usage
- Updated factorization algorithms to use the RowMatrix class
- Refactored SVD, PCA, and ICA into classes