(new) "exact" cpquery/cpdist method.