Added tests to compare time
Fixzed bug causing cocktail sort to loop infinitely