Moved vector code
3D distance