finishing makeCacheMatrix and cacheSolve functions