A c++ template for doing google codejams