Added arbitrary data type support, like glibc qsort().
Removed copy modes because I'm too lazy to update them.
Added useless wrapper for glibc qsort().