Created non recursive binary search for practice