Implemented the functions makeCacheMatrix and cacheSolve.