fixed pom.xml for java 8 and added Problem1 with java 8 streams