added max rectangle solution