added a simple matrix class