Distance formula to find distance between 2 points on a coordinate plane