wall struct documentation
calculates the power of 2 dimension using log2