Programming assignment for the course of Algorithms 4