Erlang implementation for NBT files processing