Use GeometryFactory::buildGeometry from RectangleIntersectionBuilder

also move documentation from .cpp to .h file