Overriden equals() and hashCode() for Operand class, for easy comparison of operands.