contains() method added that indicates whether a point lies on the edge