Fixed bugs dealing with mixed types, program may now handle very larg matrices
 as well as a slightly better convergence.