Changes the way that the pruning is done, from a connective component based approach to a Depth first iterator based one, improving speed impressively.