nonlinear.r: optimiziation of dnorm

Pull  some calculations that profiling revealed were time consuming out
of loops.
Also reset to number of iterations to 5 (was 1000) for testing.
nonlinear: back to more production level params

1,000 iterations and grid of 500