multithreaded summation as part of extension; setup should call gcc (which supports openmp)