Fixing Sequence dotProduct(seq). Returned self instead of the dot product