fixing extent drift in flood fill
Now using a queue instead of stack in flood fill. This keeps the point coordinates within one periodic image of the initial cluster point.