Ranked Retrieval program for IR class