Implemented makeCacheMatrix() and cacheSolve()