exercices Coursera Algorithms, Part I