Added function to make shallow copy of given table.