misc functions on lists
Commented out as this does not compile and I do not know why yet.
Merge sort
Generify msort function
Using Ordering
Using implicit ordering