Merge sorting_experiment notebook with sorting.py script.