Binary Search Algorithm for ArrayList of Integers