Created the sqrt function found on wikipedia page