An erlang implementation of simple neuron networks