Shortened persistent homology for a biomedical retrieval system with relevance feedback