IMNets: Deep Learning Using an Incremental Modular Network Synthesis Approach for Medical Imaging Applications