Multiple instance learning algorithm for medical image classification