Fix euler18

It's impossible in C++ to deduce a generic type for tuple()[x], so changed the type from tuple to list