add array_add and array_resize in heap.c