got threads working in parallel with global result array