Implemented makeCacheMatrix() and cacheSolve() functions.