Added square root functionality