Completed BinSearch.java