euclides
My implementation of extended euclides algorithm