Implementation of the M-Th-power algorithm. It can remove phase and frequency offsets for M-PSK Modulation formats after Symbol synchronisation. E.g. it works on one sample per symbol at the optimum sampling instance. Can be used to replace Costas Loops and similar. You need to use differentially encoded signals because of phase ambiguity.