Created 3d vector using arrays with numeric indexing.