Modified to add pseudo-documents to all ranking functions