got free working and fixed mem-leaks
_m_newr
implementation of detatch for mtrees, along with Deleted flag for mtree nodes