Implements makeCacheMatrix and CacheSolve