generic refactor
heap sort
Merge remote-tracking branch 'origin/master'