Cartesian iterator