错误纠正程序

error correcting routine