implemented analysis methods findRing and findRingSet for class Unit