Lossless chain code compression with an improved Binary Adaptive Sequential Coding of zero-runs