Fixed a bug in linear diophantine solver and one in quadratic diophantine solver