What fresh hell is this?
Fixed gcd
Memory bug fixed, just need to fix the invariant