Modified bisect