Stuff from algorithm design course week 2