algorithms.heapsort
heap_sort_array[T: type, S: type](collection: Ptr[T], size: int, keyf: CallableTrait[([T], S)])
heap_sort_inplace[T: type, S: type](collection: List[T], keyf: CallableTrait[([T], S)])
heap_sort[T: type, S: type](collection: List[T], keyf: CallableTrait[([T], S)]) -> List[T]