finished algorithms and data structures 1