heap array final