First commit of file rope.go
Added file rope_test.go with first tests.
TODO: add more tests!
Added sample app
Modified Rope to manage runes instead of bytes, now unicode characters will be seen as a single characters whatever the byte length is.
Function Index(idx int) now returns rune instad of byte.
Added internal isLeaf() function.
Review of algorithms.
Revised split() function:
- Now navigating left rope use the new left rope as node rope;
- Second rope is created by Concat() going up through the rope.
- General revision
- Simplified String() method
- Added Substr() method
Minor changes
Updated README.md
minor revisions
Minor corrections.
Added examples in README.md