Implemented methods


The equals the hashCode methods was implemented.
(The number 17 in hashCode() is arbitary)

toHashCode was created for creating a hashvalue from a decimal.

Also created a testcase for the methods.
Created a TriangleTestCase

It was created from the old testcase that was used before.
I also added the testmethods for equals and hashCode.