Optimization of the NCAR in situ turbulence measurement algorithm