adding data collection code to algorithms. adding code to analyze outputs to SimpleSearchResult