added square root scalar function

maybe check for the right types too?