uncovered another bug in kfoldcv and fixed it -- needs to go in master
did the rJava mem fix -- needs to go in master