Forward Error Correction Based On Algebraic-Geometric Theory