added missing unittests
replaced anonymous classes with Java 8 lambdas
Merge branch 'master' of https://github.com/pbielicki/java-puzzles