Added companion object for heap.