different operations with one- two-dimensional arrays