Changed 3D array to 3D vector