DIRECT (DIviding RECTangles) optimization