Added hypercube code