Automatic Segmentation and Extraction of Features from Human Respired Carbon Dioxide Waveform