Block diagram for the bisection algorithm
START
input data x_l, x_r, x
find center x_c
if x_c == x
STOP
if x > x_c
k_l := k
k_r := k