Fixes mutability problem of raw ptrs, needed for deletion. Deletion not yet implemented