write a programm to find square root of a number using singletton pattern