Doubling construction for $O(m)\times O(n)$ invariant solutions to the Allen-Cahn equation