Shrinking Data by Half

Update remove_margin function in data3d.h