On tractability and congruence distributivity (Logical Methods in Computer Science, 2007)