Internal: Paper rank code improvements.

By John with Eddie.

Signed-off-by: Eddie Kohler <ekohler@gmail.com>
Paper ranks: Add a random-walk based ranking method.

Signed-off-by: Eddie Kohler <ekohler@gmail.com>