Rewrite using diameter-balanced interval trees