Faster implementation of integer square root.