MiniumSegmentProduct bruteforce implemented