Made sub destructive, made insert and remove destructive
Avoid more matrix allocations