MNEA now uses a sparse matrix and is slightly faster thanks to pre-computation of constant quantities