Phase Inversion Method In Matrices