makeCacheMatrix and cacheSolve functions are implemented