Largest Fitting Rectangle Problem Solution