See here for the algorithms.
I did this just because, but there are some algorithms in there that are pretty OH-friendly.
WARNING: Some algorithms may be impractical because of length or awkwardness. These algorithms are only meant to prove that all PLL's can be 3-gen, but not that all...