Update createAlignedArray