Reed-solomon decoder with a variable number of correctable errorsпатент