Adding the extra credit version of Phase4 of this project. You still need the postings and directory file from phase3 to run this part