again worked on convergence (hopefully its finally solved); replaced regression implementation based on armadillo