Implemented an iterative Binary Search