Calculates the dot product of two vectors.