New Algorithm for a Fixed Right Shift Code to Support Different Quality of Services in Smart and Sustainable Optical Networks