Fixing (and rewriting) binary search for finding instruction in table
Use binary search method for searching regions here
Adding binary search tests