Implement int sqrt.