added adaptive bandwidth search and neighborhood pruning
the bitwise version is still showing some issues, this is a fork of it
to use integer arrays (inefficient, but easier to debug)