A static utility class for aligning two 2D polygons using the RANSAC algorithm. This version is optimized for correctness and includes a proper least-squares refinement step.