Rope data structure implementation in Elixir