A New Algorithm For Efficient Software Implementation Of Reed-Solomon Encoders For Wireless Sensor Networks