added excercise 10 algorithms