Prototyping Freight Trains Traffic Management Using Multi-Agent Systems