Fix FloodSmooth to use a stack and not create arbitrary divisions based on traversal order.