Finds the Greatest and Least common denominators of two numbers in MIPS