Added integer equivalence classes

cc @mwhelan