Algorithms and data structures, first part(whole)