Optimizing the extended Fourier Mellin Transformation Algorithm