cocktail sort in c with classes I mean c plus plus