added a test spec for matrix.add
added a test spec for matrix.multiply
added valid method to library and created test specs for it
created test specs for matrix.transpose
implemented matrix.valid