debug print for computeCarthesianProduct