Automatic analysis and classification of cardiac acoustic signals for long term monitoring