reintroduction of the pointers. Gives same values in file and monitor on my machine. Needs to be verified once on the cluster.
Using the correct compiler optimisations the difference on my computer is only 0.6 seconds between original and modified version.