Add slow implementation of collaborative filtering cost function.