Source code for google code jam