updating latex documentation for distance and squared_distance