added code for incremental page rank