det_manip : correct swap

- internal data w1, w2 where not swapped
hence not resized properly.

- a priori, not necessary to swap temporaries,
but it is easier to preserve the size.
- temporaries are now swapped.