Adds function to determine square root of upper bound