Implement Decision Tree Algorithm Formula