naive implementation of the myers algorithm, greedy forward variation