Implement __lt__ callback for based heap class