fixed a bug (no return value) in a pruning function that removes empty sets
a working pruned forks version ready for debugging