Draft of simple pagerank algorithm