Implementation of the multithreading
Lower performance
Also seems to report wrong result