Abstract max and min, maxWith and minWith to helpers

Obviously slight (probably inlined function call) perf hit but it's going to be much better than it was last revision and kills some redundancy. `min` and `max` may also perform better for some edge cases with a slow `valueOf`
whoops, that was for local testing lol. I recommitted this and forgot to kill it