Binary Decision Tree Algorithm