A Hardware-Software System for Accurate Segmentation of Phonocardiogram Signal