Happily anounce a working threaded version. ~20% speedup on 4-core CPU.