change number of iterations to match the python version; up the amount of jvm heap