Implemented basic page rank algorithm. Added tests.