Fixed bug 14177

Bezout didn't handle negative inputs correctly.