Using binary search
Make filter function handle truthness differently