simple bisecting program