Update alg.js with a bugfix in simplify().