the solution of the MinPerimeterRectangle