First attempt at a Scala implementation to answer http://projecteuler.net/problem=62