Problem 122 - efficient exponentiation

 - Depth first search, tracking best solution so far
 - Prune search space where possible
 - Optimize for even powers