modified CosineSimilarity.java file to work with the Community Detection methods. Added node.java to give the fial output