max heap in c