A first approximation for a strategy would be to follow a boustrophedon, and keep 2, 4 and 8 near the top, e.g. something like this:
. . . .
. 4 2 .
8 16 32 .
512 256 128 64