Added heap with capacity to pending algos