Text this: An algorithm of unordered wavefront propagation in terahertz phase retrieval with dense multiplane data acquisition