comparing of heap_pointers