Some algorithms excercises