Home work for course Algorithms, Part I