Speed up matrix operations (unit-wise, no interface is touched)

Improve the implementations of some gimp-matrix operations.


  • implementations are improved unit-wise, no interfaces are touched
  • though the changes are trivial, the speed-up and the equivalence of results have been tested in a separate script
  • overall build has been tested

Merge request reports