fixed input translation for similarity and terms, added iterator to SimilarityMatrix