Multiple Instance Learning Foundations And Algorithms