intsort simple yet not so bad sorting algorithm. compile with -std=c99 Please test! worst case (lowest integer at end): O(n^2) best case (sorted): O(n) average case: ... ?!