Transforming data into sparse matrices
ttMatrix | pwMatrix