Solve cos x = 0 on [0, 2pi)