Converts lines and tabs to 2-dimensional array