cacheSolve calcuates the inverse and returns it