An algorithm for real and complex rational minimax approximation - Nakatsukasa, Y; Trefethen, LN (SIAM Journal on Scientific Computing, 2020)