Added iterative deepining and succesor function [Rubik]