[buffer] fix symmetric distance strategy for deflate