Fix 2D grid size to be power of 2