Montgomery reduction

From dankwiki