Add a functional solution to alpha2010 as well