Write makeCacheMatrix and cacheSolve functions