Add group-wise malloc & free
Fix bug in malloc.
Use group-wise malloc & free in static_launch.cu