support more complex table with rowspan/colspan