heap sort with no toString