added cluster-based relatedness, fixed pagerank segfault