Polynomial factors, lemniscates and structured matrix technology