The solution can be run within Visual Studio Code

You will need extension Polyglot Notebokes installed

Lokking at the Bubble Sort Algorithm I am demoing the improved behavior of the new approach as follows: The space complexity for both is O(1) but for the improved the performance of the time complexity is now down from O(n^2) to O(log N), see the stats when run the code is demoing C# approach