Implemented construction of matrix for each layer. Working on multiplication of matrices.