Create AbstractSimilarity.java