Add dist2() function to vector-light

This returns the squared distance between the two points.