[#6] Added method swap that helps change values of two arrays elements betwin each other by indexes