Segmentation fault source fixed, apparently improved convergence rate in the process.