[libc++][pstl] Add a serial implementation of std::rotate (#244574)
This PR adds a serial implementation of `std::rotate` to PSTL.
Currently there's no intent to provide a parallel version of this
algorithm, but later it can be added as well.
Part of #99938.