task01 - bisect function