Bag of words distance added through BagOfWords.java