Added 3d capability to hex_lattice