Rope data structure in PHP.