Make enumeration of line sources much faster.

It was spending a lot of time sorting the array over and over
to find the next tile. Reinsertion of the one element that has
changed is much faster. This is the same thing the merge phase
of encoding does.