threadparallelparadigm: functor instead of lamda