totally re-factored hypercube code. Can choose rotation axis now