Rewrote basic.max() and basic.mix()

- Bug fix for https://github.com/sjkaliski/numbers.js/issues/87
Used for loop instead of Math.max.apply() and Math.min.apply() to avoid `max call stack size exceeded` exception.