Implemented heap sort

That was fun! I'm not sure if I implemented Floyd's variation or not…
Most of the examples I found were way more confusing code than what
I've written, so I wasn't able to follow easily.