Initialized CartesianProduct class.