Flexible Agent-based Simulator of Traffic