Design and Development of A Text-Retrieval Machine