Changed Math.Sqrt() to ISqrt where applicable

For instance, not in graphics code