making the dimension of the point as 2 as we are interested in only 2-D
points