Changed calcPollardRho to boolean