Optimal shape design, reverse mode of automatic differentiation and turbulence