Solves a matrix using Naive Gause Elimination