A FLEXIBLE NONPARAMETRIC TEST FOR CONDITIONAL INDEPENDENCE