First barbaric version of construction of matrices

A, M, B are constructed, added with coefficients, can be converted to
sparse, and saved to a file :P