More improvement on sqrt and negative numbers