General solution for Pell equation added and Case B**2 - 4*A*C > 0 implemented