Added Matrices.

Added some very basic Matrix algorithms.