Added rotate helper functions to RST.hpp