Finished writing second function cacheSolve, passed multiple tests with 2x2 matrices