“…An earlier version of this paper appeared as [3]. In comparison to that paper, the current paper contains the correctness proofs of our algorithm, discusses the alternative algorithms based on post * and pre * in depth, and presents a more thorough experimental comparison of the algorithms.…”