Sail optimization for maximal speed design