Pre-rewrite haplotype pruning.
Fixed bug in pruning.