Distance Formula in Cartesian Plane