Cooperative Parallel Processing with Error Curve Sensing: A Novel Technique for Enhanced Hidden Markov Model Training for 3D Medical Image Segmentation