added time domain correlation algorithm. very slow...