Worked on Cocktail Shake sort