Comparing new Java 8 Lambdas vs a Java 7 implementation of the same problem