complete ppair algo. can find. sort and print out persistance pairs