ES5 Class util which follow the semantics of ES6 max-min class