Calculates the dot product of two vector values
Shared pointer to CDotNode to easily allow reference counting.