heap insert and delete min with array