Merge geometry and linear modules into math module