created MatRI structure. Probably just gonna use Mat arrays since it's simpler.
added bunch of complex matrix operations, using only simple arrays to represent complex Mats and Vecs