Code

Optimize flood algorithm to only scan adjacent runs once