Pooling random forest and functional data analysis for biomedical signals supervised classification: Theory and application to electrocardiogram data