get rid of #defines in template
add template for class in topcoder template
google code jam 2013 round 1B (B solution incorrect)