A convolutional neural network method for boundary optimization enables few-shot learning for biomedical image segmentation