Function Distance2D(x1, y1, x2, y2)

Returns the distance between 2 points in 2d space