Optimization Patch

Implemented several optimizations in the parallel ant colony algorithm.
There is now is thread-local cache of the shortest distance which is
used to prune ants that go too far.

The minimal distance can now be extracted.