Convert 2-dimensional array to html table