Fix: hardcoded pointer size, segfault on 64 bit Linux
Fix: added missing _isnan macro for Linux
Change: minor modification for qsort parameter