Write a code to convert a number in base n to a number in base m.
Modify the code bisect.m to ensure that it returns a root of the function for every bracket provided in the input.