Implemented makeCacheMatrix() and cacheSolve().