Implements cacheSolve and makeCacheMatrix