added profiling statement
Optimization of influence function computation