Change CartesianArray to store the data the usual way but retrieve it correctly.