Fixing size of memories to be 2^n for width n