Decision tree working methodology from first principles