Total time + solved bug

Placed cudamallocpitch of the device memory outside the for loops
now printing individual kernel times and total execution time