Smaller and faster

- fast math using constant values and no Math functions;
- caching `this` and `array[index]` access for faster loops;
- better minification.

http://jsperf.com/math-min-max-vs-ternary-vs-if
http://jsperf.com/math-abs-vs-bitwise/7