Updates Table to allocate storage.

Updates the Table struct to allocate memory for the data and adds
testing of Table to main.