motif distance function, verbose_gen carriage return behavior, iterified bisection function