Qr planner

to do: linear search over all possible seeds