Generic implementation of the Ant Routing Algorithm (ARA)