Update sort.rb

Added documentation for cocktail_sort and counting_sort