add homework2.cc and update readme