added scan-polarity filter to FileFilter; RangeUtils speed improvement by 24% via XOR; minor fixes