implemented weighted PageRank and rearranged supporting c++ files so they make more sense for future merging to snap-core