add col and row indexes to thead and tbody elements