done arff write and solved hashmap problem
simularity done, now do the calculation