page_rank with k iterations is written and runs with small test