Computes the bit width needed to store w addresses.
w
int log2Ceil(int w) => (log(w) / log(2)).ceil();