I'm not familiar with Erlang. Can you walk me through a sample input and what your code does? I have a generic idea, but I'm not quite there yet.