Use distance criteria additionally to parameter criteria when verifying the extrema solution to belong to the edge boundary. Refactor the BRepExtrema_DistanceSS class to remove the excessive methods with mirrored parameters.