Left and right rotation functions in RST