use references intead of pointers for njev/nfev
12 files changed