add cocktail sort and improved cocktail sort on JavaScript [list-sort]