N log N time BITCHES