makeCacheMatrix and cacheSolve implemented