Testing version of AMDF+ACF algorithm. Working python version.