Attempting to overload ^ operator for powers and inverses