Remove unused hasOperatorList code
Use binary search in getVisibleElements()