Iterative procedure for MaxPQ Test