Progress on optimizations.
Progress.
Further progress. The only optimization left is the matrix copying.