Add equals, hashCode and toString methods to Range.