A Comparison of Algorithms for Learning Hidden Variables in Normal Graphs