Editted getRegionA method in Hypercube class