modified RandomForestsSolution.java