+sameple data statistics
using varnibble encoding with subsets method