threads do a job: sum array, each thread calculates different part of array