Update Similarity.java