added 'distance' method into Pont2D class