Very simple pagerank implementation