look for the smalliest k elements in a unsorted array