Added multithreading support. Useless, excessive overhead for thread creation/destruction inside recursive search.