Implementations of the Werner's and Momiji's Algorithm