Cloned matrix library from MatR for use in machine learning algorithms.