use static methods, move println to main() for testability, add test files
Merge branch 'master' of github.com:jazkat/algorithm-design-and-analysis