Binary search C helper macro and struct