Implementation and analysis of a Top-K retrieval system for strings