Added matrix multiplication test
Bug fixes in matrix multiplication.