I will reorder my function so it follows the existing convention.
Then it can be added to the number theory module as `igcdex`
Shall I make a pull request for that?