made preparations to profile
going to check if gprof works on linux
did some work to calculate time