Completed 2D peak finder with nlogn algorithm