Added the method that calculates the Similarity with a Vector