flood filling algorithm comparison;see more http://en.wikipedia.org/wiki/Flood_fill