Conditional Preference Networks: Efficient Dominance Testing And Learning