Create gcd-lcm-cw-spec.cc

I noticed that the current implementation of gcd() and lcm() is different to the spec in the cw brief, I was wondering if it would be better if we keep it the same as the spec as in this file, but up to you guys.