Bugfix to handle transpose: wrong dimensions were used to allocate and create the transposeBuffer array.
We need to use the step sizes of the level previous to the transposing level. If the transpose needs to be
performed before any level (i.e., before any loop begins), the dimension must be the same as the dimension
of the second matrix (m2). This issue has been fixed.

Now that there are so many parameters, convergence will take a long time. Maybe some measures are needed to handle that.