(mem_insert): Set min_heap_address and max_heap_address