Automatic classification of magnetocardiograms with the machine learning approach