Complete printing procedure for intermediate states of the algorithm.