Basic implementation of equality operator.