Y combinator implementation in Java 8