dotProduct(self, vec1, vec2) of class ItemCosine in file filters.py in module collaborativeFilters working