Implementation of heap data structure for HPPC