Various changes to Java 7 versions of ForkJoin solutions plus adding Java 8 varieties.