wrote findEquivalenceClasses, pending testing