Analysis and optimization of control algorithms for RSSTSP for horizontal well drilling