An Algebraic Description of Pixel Chain and Code of Binary Figures