java implementations of minmax stuff

Adding the java implementations to the master branch for reference. while debugging my repo.