check_cycle function
number of rotatable bonds