logFormatFields doesn't appear to be sorted, so I'm not sure why you are using BinarySearch.