codejam: added 2008 practice problem D solution for large dataset