Better iterator handling
Implmented cocktail_sort