Solution code to problems on www.projecteuler.net in Java, C++, and Haskell