Canal Lock Algorithm

One barge, one flight of locks, daily.