function isSamePoint(pointA, pointB) {
  return pointA.node === pointB.node && pointA.offset === pointB.offset;
}
returns whether pointA and pointB is same or not.

@param {BoundaryPoint} pointA
@param {BoundaryPoint} pointB
@return {Boolean}