before loopin in Matlab, recompiling everytime to fix the problem of nonavailability of malloc() as a device function
matwrapper to compute empirical time complexity