(fix) minor bug with NA values in "exact" cpquery/cpdist
KIAMB algorithm (Pena)