Is your feature request related to a problem? Please describe.
Small optimizations in the algorithm can lead to large results, for example, when sorting an array, the values are changed and additional memory is required. How to get rid of this extra memory?
Describe the solution you'd like
To swap values without additional memory:
a = 4, b = 7
- a = a + b ==> a = 11, b = 7
- b = a - b ==> a = 11, b = 4
- a = a - b ==> a = 7, b = 4