-- 1.0.2 RC 2 --
Added more thread optimizations. Timings results:

Original time: 19942153 (19ms)
RC 1 time: 3872573 (3ms)
New time: 1227382 (1.2ms)