Add overloading of operator [] for container.