find dot product of two vectors