pthredas working now (by partitioning atoms into count/#THREADS blocks)