Algorithms and Datastructures assignemnt 2