Cleaned threshold arrays
I changed the code to drop the binary flag (legacy from the C code) and the power in the threshold arrays. I also had to slightly modify one of the cython functions so you'll have to recompile the cython module: python setup.py build_ext --inplace
This also includes some changes that I've been working on that are not related to performance.