Reinitialize teCalc class before each execution to allow Kraskov method to work