added weighted pagerank; unified hits code