RS decode