init heap sort dir