Programming assesment for Coursera's cource "Algorithms part 1"