A Mean Field Theory Learning Algorithm for Neural Networks