Binary-Search-Algorithm Binary Search Algorithm Function, used to find a certain value in a sorted list and runs in O(log(n)) time.