Modular Design and Optimization of Biomedical Applications for UltraLow Power Heterogeneous Platforms