Changed Hypercube print method to be more general