#65 replaced the cmp method with __lt__ and __eq__