speed up model evaluation by reducing system calls
refactor generation of primal solutions
Merge pull request #254 from joergkappes/master

significant speed ups for some methods