Update findMiddleElement in One Pass