Removed unnecessary code

Since the dot product already checks if the given vectors have the same number of elements.