multithreaded element wise operations