initial groundwork done for calculating links graph and page rank