Update alg32
Fully implement alg33