Improve C library performance (currently qsort) through multi-threading