add cocktail_sort

http://en.wikipedia.org/wiki/Cocktail_sort