Add page-rank primitive

Fixes #117