Fixed minor issues in random flooding

Fixes some problems with random_flood search algorithm, making it far more efficient than the previous pass.  Random_flood now also returns the list of open lists used in the flooding step, something we think will be key in doing the learning.