Updated NavierStokesSolver.ts

The updated version is directly based upon Memo Akten’s java MSA solver.