Added a new parallel multiplication using the ThreadPool.

Fix some issues with the ThreadPool.