sequences.product: use some unsafe to make it faster.