Euclids method to find the greatest common factor, should be useful