Base class for solving codejam problems