Removed old numpySorts imports and changed order

Moved itertools and collections imports down to group them with pure_countsort (the only function that uses them).