writing makeCacheMatrix and cacheSolve functions