Added multithreaded speed test. Uses pthread API.