[MRG] Attempt to speed up cd_fast.

Fixes https://github.com/scikit-learn/scikit-learn/issues/2526