Neural simulator in Erlang