programming assignments of Algorithms, Part I