Add comments to SimilaritySearch.java