add table1D which is much faster than base::table