nice! we could leave the nlogn analysis for the future.