Both functions are working, but I'd like to create a function that checks to see if the matrix is solvable.
Added error handling to see if matrix is a square