Gaussian Elimination method for solving matrices