add array_insert and array_remove in heap.c