Adds the full algebra algorithm.
Slightly customizes math.js to work in Web Workers.