added HeapItem class, implemented constructors and destructors