[Beta] Addedd function to compute optimal growth dir vec