multithreading
fixed problem with array by converting to hash
fixed hash problem
Merge branch 'multithreading' into postgres