backtracker function

Backtracker: a flexible and generic binary search program