Termination Criterion and PageRank for the new Java API

I added the termination criterion for BulkIterations to new new Java API.
Additionally I wrote the SimplePageRank algorithm in the new API and added it as testcase.