Implemented the makeCacheMatrix and cacheSolve functions.

Also wrote a quick test.