in-place heap sort procedure tested