fixed bug in dihedral finding that would identify 3-membered rings as a dihedral