Improved PAL coder