added hw2 for algorithm design