Perform symmetry and grid transform to table
function tableGrid input STTable table; input Integer n; input Integer m; input String sym; output Integer res; end tableGrid;