An erlang ring buffer using ets tables