Added a bunch of custom equals() and hashCode() implementations.

[IMPROVED]  Performance improvements by adding fast implementations of hashCode and equals.