How to fit the biggest possible rectangle inside of an ellipse