Reimplemented functions of makeCacheMatrix and cacheSolve.