DM-CNN: Dynamic Multi-scale Convolutional Neural Network with uncertainty quantification for medical image classification