Fix variables type

HeapBlock pointer to HeapBlock
Change pointer declaration