workspace optimize
v1 of RefactorSubtensors working