applications of the dot product