Use new instead of alloca