adding Ben's c++ solution to euler 2