I am trying to implement a non-recursive bitonic sort in Java. I am basing it off the C style pseudocode on Wikipedia. The pseudocode there looks like this:
/