Create 10-sorting.rb

I had a lot of trouble with this exercise so I had to write myself a few comments to keep everything straight in my head. I still don't fully understand it...but it works