Added first version of sparse transforming
Merge branch 'flattener-sparse-matrix' into develop