HEAPSORT, THOU HAST BEEN CONQUERED.
I am a human pseudocode-to-code translator.