added cocktail and stooge sort algorithms