A Paralled and Distributed Discrete-event Simulation in Erlang