alternate floodfill alg for bucket tool
updated version
please