ruby implementation of the google pagerank algorithm