Binary search for threshold maps
Binary search for threshold maps
Fixes