Added Binary Search

Replaced $.inArray() with a binary search method and removed the
numerous calls to toUpperCase() resulting in roughly a 2.6x improvement
in performance.