Corrected Triangle and updated Rectangle

The Triangle and its testcase was updated.

A testcase was built for the updated Rectangle.
The Rectangle was given two methods, equals and hashCode.
They have been implemented and tested.