-- Implemented basic Matrix functionality.