Checking-in implementation of GCD/LCM finding algorithms