find top n elements in array