Modular Design and Optimization of Biomedical Applications for Ultra-Low Power Heterogeneous Platforms