suffixarray: provide accessor to data

R=r
CC=golang-dev
https://golang.org/cl/3574044
diff --git a/src/pkg/index/suffixarray/suffixarray.go b/src/pkg/index/suffixarray/suffixarray.go
index 2d728e2..0a8d9e2 100644
--- a/src/pkg/index/suffixarray/suffixarray.go
+++ b/src/pkg/index/suffixarray/suffixarray.go
@@ -49,6 +49,14 @@
 }
 
 
+// Data returns the data over which the index was created.
+// It must not be modified.
+//
+func (x *Index) Data() []byte {
+	return x.data
+}
+
+
 func (x *Index) at(i int) []byte {
 	return x.data[x.sa[i]:]
 }