Adding NxtPowerOfTwo(int64) int64

This function returns a power of two which is at least as large as the
argument. If the argument is 0 or negative the value returned is 1.

This function is added to make it easier to construct queues which
require a power of two sized ring-buffer.