factored out Slice, cleaned up usages
cleaned up some Slice munging in KVSDI
implemented a naive KVSortedDataBuilderImpl