Thanks. A heapsort would be useful as an alternative to qsort(). If you put the source somewhere and send the url to the list then we can download it from there. GSL uses size_t for indices, unsigned.