Added Priddy's algorithm.