Initial prototype of chunk tree based optimizing