Multivariate Data Handling with S4 Classes and Sparse Matrices