Add support for rowspans

I needed to support sorting with rowspans, so I made a small change that should support arbitrary combinations of colspan and rowspan. I just generated an array for each table to provide a mapping between heading row/index and actual column.

I also added an example html file that demonstrates the functionality.