mxcalloc and mxfree
faster neighbors