Algorithm/ants: created a class used for heuristic calculation

Signed-off-by: Artem Plakunov <artacc@lvk.cs.msu.su>
Algorithm/ants: heuristic changed for better performance

heuristic maxValue is now calculated globally and used when choosing a
resource. Now heuristic don't require normalization which resulted in
better performance

Signed-off-by: Artem Plakunov <artacc@lvk.cs.msu.su>
Algorithm/ants: performance fix

initializations like vector.size() and set.end() moved out of the for
loop head where it was significant

Signed-off-by: Artem Plakunov <artacc@lvk.cs.msu.su>