init pseudo code for heap sort