Find the least and greatest common denominators of two numbers in MIPS