Add closest element binary search and iterative binary search