Some more utility functions on Alg.hx
Simplify