add possibility to use comparable interface to compare two objects.
Review on new feature compareToOnly
Merge pull request #1 from jlrigau/review-comparator

Review on new feature compareToOnly
Merge pull request #67 from Jean-Eudes/features/use-comparator

New feature to allow equality check by using the compareTo method of comparable types. Thanks to Jean-Eudes