Don't forget, n log(n) , before it's too late (update, 1.3)