Rewrite tr_pivot()
Rewrite ss_pivot()