Made memory initialize with a log2 size.