first implementations for sequential flood fill