Compact DAWG: determining field sizes for arbitrary dawgs and specific memory word size.