adding some comparisons with Erlang implementation