parallel algorithms excercises