data and code for project euler 18