On the development of numerical algorithms for the clinical analysis of the single breath nitrogen washout curve