Switched out the binary search in dictionary builder for a tree map that has constant look up and items are sorted.