big speed increase for dihedral finding