Replaced Rectangle.equals but operator==.

Replaced Rectangle::equals by operator== which is the idiomatic C++ way to compare two instances of a same class. Added operator!= for symmetry.