solution for submission, does have one major bug - page ranks are not reset after the first factor run!