Merge math modules