implementation of a specific version of CCA where one space is one-dimensional. Maybe I'll extend it later