Mammogram segmentation by contour searching and mass lesions classification with neural network