Rewrote rope.c

More efficient rope representation.