Iterative Scaling and Coordinate Descent Methods for Maximum Entropy Models