cuda bisect_left implementation