added documentation for lengthSq and distanceSq