Create sortingarray.rb

This is the first exercise at the end of chapter 8.