Nearly optimal three dimensional layout of hypercube networks