Programming assigment for the coursera "Algorithms, Part I" course