A Novel Momentum-Based Deep Learning Techniques for Medical Image Classification and Segmentation