Implement chunks encoding
Add draft for bench tests