Completion of Google Codejam challenges