BUG: n_samples instead of n_features in cd_fast

Was causing a segfault under numpy master, that is more sensitive to
array index overflow. Our code was wrong, numpy is not to be blamed.