Added comments for 'lib/sorting.rb'