Adding new functions to give user flexibility to work with matrices directly.