Added QuadraticFunctionInXdd to handle tacking on acceleration and velocity regularizers.