improve bulk insertion by using Floyd-Rivest selection