MotionPlanner: allow specifying any lookahead buffer size, not just in powers of two