starting nlogn