https://ruclips.ru/en/watch/9vd7vFItMHU/reverse-an-array-in-groups-of-given-size