functools
bisect
