Rewritten _bisect_right with numpy searchsorted. Updated examples.