Moved flood algorithm to new folder