makeCacheMatrix and cacheSolve functions are written