Updated seed pruning to use a heap instead of sorted array