Two methods implemented, both equal efficient for Binary Search.