A regular octahedron has a side length of . It is inscribed in a cube. The cube's vertices are and . Vertices and are adjacent to , and for , vertices and are opposite to each other. The octahedron's vertices are located on the segments and . What is the side length of the cube?