adding the functions of lgLabel to calculate distance in 3d and 2d, distance with bounding boxes still under development