reorganize frameshift detection code to _re_shift_anchor method