Optimization code contributed by Bisqwit (http://iki.fi/bisqwit/).
The usage license of this library is located at the end of this text file.
What's new in v3.1.3