added import statement for bisect