Cocktail sort provided