Calculating differences now multithreaded

Makes calculating differences faster.