Add primitive heap sort.