Applying block and lexical scoping to the square root approximation method.