Overwrite is now conditional and works on device

 - macro needed some changes
 - started to implement OldMalloc policy (uses the plain malloc from
   CUDA)