Code snippets I wrote for solving problems (codejams, topcoder, etc)