FloodFill constructor with minNeighbors parameter