Added formulas for finding an element in row-major and column-major form