c: Added inversions.c and other fixes

Modified mergesort.c to be more readable
Removed some extra whitespace from stack.c