finish Euclidean

Euclidean Algorithm to find greatest common divisor. Something wrong
with my Spim simulator's keyboard IO and I can't use syscall to read an
integer.