Heapsort in reinem C