Update BinarySearch.java

This compiles, but returns the following message:
  "Note: BinarySearch.java uses unchecked or unsafe operations.
   Note: Recompile with -Xlint:unchecked for details."