I think the swap saved me both from the copy and the zero! Coming from the python world I didn’t know I could do such operation. Thanks a lot!
I would be very interested to hear any other comments you may have about my code if you have the time to check