Added square root function for CGFloat
Added square root test