Information retreival search algorithm