some basic array and matrix operations...