a naive implementation of Google's PageRank