Created binary search recursively and iteratively