sorting.py completed (mostly)