Dichotomy method added.