Include <algorithm> in 3-D Table Code

Needed for `std::shuffle`
Minor word smithing.