Added normalised dot product functions.