Mastering Decision Trees: Fundamentals and Applications