Added radix sort and allowed sorts to return iterators.
New optimizations/fixes.