add and debug internal iterative deepening