v5.0 Selection Sort implemented, Cocktail sort goes in infinite loop