simple statistics
verify substring encoding
+Encode using constant-width bit fields