An Agent-Based Prototype for Freight Trains Traffic Management