Square root for integral types

Square root for integral types