Updated Java Binary Search impl. to use Generics.