Notes on matrices, arrays, and data frames