Solves Matrices