added code to test parallel pagerank, improved the code for triangle counting