The very core of cross() is capable of suffering integer overflow on