Implemented makeCacheMatrix() and cacheSolve() functions as requested