Inside Outside Algorithm