Resonator Networks outperform optimization methods at solving high-dimensional vector factorization