Algorithms HW1