Added method to find the integer square root of a number (logN complexity).