multiple thread search on GPU
CPU pthread parallel version