Project Euler 149
Project Euler 160
refactorings