Modifications to the `Table` struct.

Removes the unused `as_slice` and `as_mut_slice` methods.
Replaces `get` and `set` methods with implementations of the `Index` and
`IndexMut` traits.
Adds an `into_iter` method for completeness.