Understanding Alternating Minimization for Matrix Completion