Fast classification using sparse decision DAGs