Implemented the cacheSolve and makeCacheMatrix methods