Assert if any of the multiplications, which are then used to allocate memory and run a loop, would overflow. Closes: #92