add 'binary search closest'