convert two-dimensional Array into an Array of Structs consuming the first row and/or column as attributes