Use foldLeft in Seq GCD.