Specific order and bisection search aided joint 3D beamforming and RIS reflecting optimization