Performance Improvement

Seq.zip will enumerate the headers for each row, which will repeat the regex matching. Freeze the computation by using Array.map instead of Seq.map

PS: the change is only to change Seq.map to Array.map on line 28, for some reason github is showing line ending differences on the whole file