Added Expect Min Max algorithm (hope it works)