Minimum Depth pruning implementation. Still has bugs.