added naive c_sqrt